import dva from "dva";
import {browserHistory} from "dva/router";
import createLoading from "dva-loading";
import "./index.css";
import "babel-polyfill";

// 1. Initialize
const app = dva({
  ...createLoading({effects: true}),
  history: browserHistory
});

// app.model(require("./models/app"));

// 2. Plugins
// app.use({});

// 3. Model
// app.model(require('./models/example'));

// 4. Router
app.router(require('./router'));

// 5. Start
app.start('#root');
